package com.example.wang.yuejian.Model;

import com.example.wang.yuejian.RetrofitListener;
import com.example.wang.yuejian.Service.LoginService;
import com.example.wang.yuejian.bean.LoginBean;

import retrofit2.Call;


public class UserModel extends RetrofitBaseModel{
    private LoginService loginservice;
    public UserModel(){
        loginservice = retrofit.create(LoginService.class);
    }
    public void login(String utel,String pwd,final RetrofitListener listener){

        Call<LoginBean> call =loginservice.login(utel,pwd);
        bindCallback(call,listener);

    }
}